from pymouse import PyMouse
import time
from pykeyboard import PyKeyboard
import random
mouse = PyMouse()
key = PyKeyboard()
mouse .position()
mouse .move(840,525)
time.sleep( 5 )
mouse .click(840,525,2) 
time.sleep( 2 )
print ("start")
count = 0
while ( True ):
    key.tap_key( "a" )
    time.sleep( random.randrange(3, 10) )
    mouse .click(random.randrange(300, 1180),random.randrange(300, 650),2) 
    count = count + 1
    print(count)

print ("End")
